package com.usian.feign;

import com.usian.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@FeignClient("spring-teacher")   //http://127.0.0.1:8383/
public interface TeacherFeign {

    @RequestMapping("/teacher/update/{sname}/{id}")
    public Result update(@PathVariable Integer sname, @PathVariable Integer id);

}
